package com.mei.springbootdubbo.consumer.controller;

import java.time.LocalDateTime;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.mei.springbootdubbo.consumer.service.MessageConsumerService;

@RestController
public class TestController {

    @Autowired
    private MessageConsumerService messageConsumerService;

    @RequestMapping("/test")
    public String test() {
        return messageConsumerService.send("当前时间***" + LocalDateTime.now());
    }

}